package com.sjzd.message;

import java.io.Serializable;

/**
 *  实体状态信息的基类
 */
public class StatusMessageBase implements Serializable {
    public static final long serialVersionUID = 1L;

    public String id;
    public int X;
    public int Y;
    public double sinX;
    public double sinY;
    public boolean isExist;

    public StatusMessageBase(String id, int x, int y, double sinX, double sinY, boolean isExist) {
        this.id = id;
        X = x;
        Y = y;
        this.sinX = sinX;
        this.sinY = sinY;
        this.isExist = isExist;
    }

    public void update(int x, int y, double sinX, double sinY, boolean isExist) {
        X = x;
        Y = y;
        this.sinX = sinX;
        this.sinY = sinY;
        this.isExist = isExist;
    }

    public void update(int x, int y, boolean isExist) {
        X = x;
        Y = y;
        this.isExist = isExist;
    }
}
